﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace WaterRevenueMS.Domain.ViewModels.ReadMeterMS.TaskTemplet
{
    public class TaskGenerateModel
    {
        public TaskGenerateModel()
        {
            TaskTemplets = new List<SelectListItem>
            {
                new SelectListItem{Text="请选择任务模版",Value="0"}
            };
        }

        public int id { get; set; }

        [Required(ErrorMessage = "任务名称不能为空")]
        public string Ren_WMC { get; set; }
        public int Chao_BND { get; set; }
        public byte Chao_BYD { get; set; }
        public byte Sheng_CZT { get; set; }

        [RegularExpression(@"^\+?[1-9][0-9]*$", ErrorMessage = "请选择抄表模版")]
        public int TaskTempletId { get; set; }
        public List<SelectListItem> TaskTemplets { get; set; }
    }
}
